//
//  MKConst.swift
//  MOKOAnnounce
//
//  Created by 曹相召 on 2017/7/7.
//  Copyright © 2017年 cc.moko. All rights reserved.
//

import Foundation
import UIKit
import HandyJSON

let ScreenWidth = UIScreen.main.bounds.width
let ScreenHeight = UIScreen.main.bounds.height

//16进制转化颜色
func UIColorFromRGB(rgbValue:Int,A:CGFloat) -> UIColor {
    return UIColor(red: ((CGFloat)((rgbValue & 0xFF0000) >> 16))/255.0, green: ((CGFloat)((rgbValue & 0xFF00) >> 8))/255.0, blue: ((CGFloat)(rgbValue & 0xFF))/255.0, alpha: A)
}

//字体创建
func fonts(size:CGFloat) -> UIFont {
    return UIFont.systemFont(ofSize: size)
}

//等比例适配
func realValue6(value:CGFloat) -> CGFloat {
    return value / 375.0 * ScreenWidth
}
////创建图片
//func image(name:String) -> UIImage {
//    return UIImage.init(named: name)!
//}
